<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>商品管理</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/backStyle.css">
<link rel="stylesheet" href="css/style.css"></link>
<link rel="stylesheet" type="text/css" href="css/myButton.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap-modal.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

<style>
html,body {
	height: 100%;
	width: 100%;
	border: 0;
	background: #fff;
	overflow-y: auto;
}

.button {
	margin-top: 1.5em;
	margin-left: 12em;
}

label {
    width: 8em;
    margin-top: 1em;
}

textarea {
	margin-top: 1em;
}
</style>
</head>
<body>
	<ul class="breadcrumb">
		<li><a href="sys/welcome.jsp">首页</a></li>
		<li class="active"><a href="goodsShow.action">商品管理</a></li>
		<li class="active">商品查看</li>
	</ul>
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="form">
				<form action="" id="goodsInfor">
					<p>
						<label>商品名称：</label>
						<span><s:property value="goods.goodsname"/></span>
					</p>
					<p>
						<label>价格：</label>
						<span><s:property value="goods.price"/></span>
					</p>
					<p>
						<label>简介：</label>
						<span>
						<textarea style="height: 120px;width: 550px;vertical-align: top;" name="goods.remark" id="goodsRemark"  readonly="readonly"><s:property value="goods.remark"/></textarea>
						</span>
					</p>
					<p>
						<label>品牌：</label> 
						<span> 
						<select id="goodsBrand" name="goods.brand.id" disabled="disabled">
							<option value="" selected="selected">---请选择品牌---</option>
							<s:iterator value="Blist" id="brand">
								<option value="<s:property value="#brand.id"/>"><s:property value="#brand.brandname"/></option>
							</s:iterator>
						</select>
						</span>
					</p>
					<p>
						<label>硬盘类型：</label> 
						<span> 
						<select id="goodsType" name="goods.type" disabled="disabled">
							<option value="" selected="selected">---请选择硬盘类型---</option>
							<s:iterator value="typeList" id="type">
								<option value="<s:property value="#type.value2"/>"><s:property value="#type.value1"/></option>
							</s:iterator>
						</select>
						</span>
					</p>
					<p>
						<label>是否上架：</label>
						<span>
						<select id="goodsIsDelete" name="goods.isDelete" disabled="disabled">
							<option value="" selected="selected">---请选择---</option>
							<option value="0">是</option>
							<option value="1">否</option>
						</select>
						</span>
					</p>
					<p>
						<label>卖家：</label>
						<span>
							<span><s:property value="goods.user.name"/></span>
						</span>
					</p>
					<!-- <p>
						<label>图片：</label>
						<span>
							<input type="text" id="goodsImg" name="goods.img" readonly="readonly">
						</span>
					</p> -->
					<input type="button" value="返回" onclick="window.history.go(-1)" class="button black">
				</form>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
	$("#goodsBrand").val(${goods.brand.id });
	$("#goodsIsDelete").val(${goods.isDelete });
	$("#goodsType").val(${goods.type });
})
</script>
</html>
